#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
public:
//    void keyPressEvent(QKeyEvent* event);//键盘重载事件
//    void moveEvent(QMoveEvent* event);//窗口重载
//    void resizeEvent(QResizeEvent* event);//位置重载
    void timeEvent(QTimerEvent* event);
private:
    int _time;
private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
